package cz.data.domain.market.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.market.model.entity.TableApiEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "tableApiFeign", value = "market-domain-api")
public interface TableApiFeign {

    @DataInner
    @GetMapping("/inner/table/api/{id}")
    TableApiEntity getTableApiById(@PathVariable("id") String id);

    @DataInner
    @GetMapping("/inner/table/api/release/list")
    List<TableApiEntity> releaseTableApiList();
}
